package com.cjh.wechat.core.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.cjh.wechat.commom.pojo.User;
import com.cjh.wechat.commom.vo.MineVo;

public interface UserDao
{
    public User findById(String id);
    
    public List<MineVo> findByTno(Integer tno);
    
    public int updateByPrimaryKeySelective(User user);
    
    // 根据条件搜索用户(分页)
    public List<User> search(@Param(value = "uid") String uid, @Param(value = "startNum") Integer startNum, @Param(value = "endNum") Integer endNum);
    
    public Integer getSearchNum(@Param(value = "uid") String uid);
    
    public int insertSelective(User user);
}
